package com.ro0tsh3ll.service.impl;

import com.ro0tsh3ll.dao.CountDAO;
import com.ro0tsh3ll.model.Count;
import com.ro0tsh3ll.service.IdeaKeyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2014/6/9.
 */
@Service
public class IdeaKeyServiceImpl implements IdeaKeyService{

    @Autowired(required = false)
    private CountDAO countDAO;

    @Override
    public Count findCount(String type) {
        return countDAO.selectCount(type);
    }

    @Override
    public void upDateCount(String type) {
        countDAO.upDateCount(type);
    }
}
